package com.yb0os1.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Setmeal implements Serializable {
    @Schema(name = "主键ID")
    private Long id;

    //菜品名称
    @Schema(name = "套餐名称")
    private String name;

    //菜品分类id
    @Schema(name = "分类id")
    private Long categoryId;

    //菜品价格
    @Schema(name = "套餐价格")
    private BigDecimal price;

    //图片
    @Schema(name = "套餐图片")
    private String image;

    //描述信息
    @Schema(name = "描述信息")
    private String description;

    //0 停售 1 起售
    @Schema(name = "套餐状态")
    private Integer status;

    @Schema(name = "套餐包含的菜品")
    private List<SetmealDish> setmealDishes = new ArrayList<>();

    @Schema(name = "创建时间")
    private LocalDateTime createTime;
    @Schema(name = "更新时间")
    private LocalDateTime updateTime;

    @Schema(name = "创建人")
    private Long createUser;
    @Schema(name = "更新人")
    private Long updateUser;
}
